package org.example.chapter7.pojo;

import org.apache.ibatis.type.Alias;
import org.example.chapter8.pojo.Role;

import java.io.Serializable;
import java.util.List;

/**
 * @author CoderXshuai
 * @date 2020/8/1/0001 21:58
 */
@Alias("user")
public class User implements Serializable {
    private static final long serialVersionUID = -5086133790287801434L;
    private Long id;
    private String userName;
    private String note;
    private List<Role> roles;

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }

    public List<Role> getRoles() {
        return roles;
    }

    public void setRoles(List<Role> roles) {
        this.roles = roles;
    }
}
